package cn.declare.service.impl;

import cn.declare.bean.User;
import cn.declare.dao.UserMapper;
import cn.declare.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Author 葛鑫
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    /** 用户登录
     * Author  葛鑫
     * @param userCode
     * @param userPassword
     * @return
     */
    @Override
    public User login(String userCode, String userPassword) {

        return  userMapper.login(userCode, userPassword);
    }
}
